//Class Name: TweetGui
//Author: Ross Sheffler
//Date Created: March 30,2010
//Description: This class displays the individual tweets into the window pane.

import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.Color;
import java.awt.Dimension;
import java.io.StringWriter;

import javax.swing.*;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerException;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

import java.io.StringWriter;

import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;


public class TweetGui extends JPanel {

	String TestString;
	JLabel TestID;
	Dimension MaximumSize;
	JTextArea textArea;
	String nametest = new String ();
	
	
	public TweetGui(){

		
		
		
		
		
		
		
		textArea = new JTextArea(TestString);
		textArea.setEditable(false);
		textArea.setLineWrap(true);
		
		
		TestID = new JLabel(nametest);
		TestID.setForeground(Color.BLACK);
		TestID.setHorizontalAlignment(SwingConstants.LEFT);
	
		MaximumSize = new Dimension(300,150);
		
		
		setBackground(Color.WHITE);
		setMaximumSize(MaximumSize);
		setLayout(new BorderLayout());
		add(textArea, BorderLayout.CENTER);
		add(new Button("X"), BorderLayout.EAST);
		add(TestID, BorderLayout.NORTH);
		setBorder(BorderFactory.createLineBorder(Color.blue));
	

	}
}
